# coding=utf-8

# python 3.10版本支持问题，此时在开头多导入一个依赖包collections.abc
import collections.abc
import pptx  # pip install python-pptx

from utils.file_util import get_desk_top_p

p = pptx.Presentation()  # 生成ppt对象

layout = p.slide_layouts[8]  # 选择布局

# 0 title
# 1 title content
# 7
slide = p.slides.add_slide(layout)

p.save(get_desk_top_p() + '\\333\\test1.ppt')
